package com.jzzzb.debug;

import com.jzzzb.debug.config.RunConfig;
import com.jzzzb.debug.mapper.OrderMapper;
import com.jzzzb.debug.mapper.UserMapper;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(RunConfig.class);
		UserMapper userMapper = context.getBean("userMapper", UserMapper.class);
		OrderMapper orderMapper = context.getBean("orderMapper", OrderMapper.class);
		System.out.println(userMapper.queryUser());
		System.out.println(orderMapper.queryOrder());
	}
}

